package com.h3c.ptability.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: SdAuthChgLogDTO
 *
 * @Author: l22886
 * @Date: 2022-01-19
 * Description: sd_auth_chg_log dto实体
 * Version: 1.0
 */
@ApiModel(value="SdAuthChgLog对象", description="")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SdAuthChgLogDTO {


    @ApiModelProperty(value = "系统权限变更记录ID")
    private String logId;

    @ApiModelProperty(value = "系统ID")
    private String appId;

    @ApiModelProperty(value = "操作人工号")
    private String operUserId;

    @ApiModelProperty(value = "操作人姓名")
    private String operUserName;

    @ApiModelProperty(value = "操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="Asia/Shanghai")
    private Date operTime;

    @ApiModelProperty(value = "操作表名")
    private String operTableName;

    @ApiModelProperty(value = "操作IP")
    private String operIp;

    @ApiModelProperty(value = "操作类型：add/update/delete")
    private String operType;

    @ApiModelProperty(value = "操作对象的json数据")
    private String dataJson;

    @ApiModelProperty(value = "操作备注")
    private String remark;

    /**
     * 排序字段 + 升序， -降序
     * 比如 +updateTime 根据 修改时间升序排序，-updateTime 根据 修改时间降序排序
     */
    private String orderBy;

}
